package com.yuke.cloud.service.api.opc.service;
import com.yuke.cloud.common.security.feign.OAuth2FeignAutoConfiguration;
import com.yuke.cloud.service.api.opc.service.hystrix.OpcSendNotifyFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@FeignClient(value = "yuke-cloud-service-opc", configuration = OAuth2FeignAutoConfiguration.class,
        fallback = OpcSendNotifyFeignHystrix.class, path = "${yuke.feign-path-opc}")
public interface OpcSendNotifyFeignApi {
    @GetMapping(value = "/api/notify/sendnotify")
    Integer sendnotify(@RequestParam("userId") String userId, @RequestParam("title") String title, @RequestParam("content") String content,@RequestParam("isnotify")int isnotify);
}
